package com.example.common.unit.PageUtil;

/**
 * @author ghy
 * @date 2025/08/20
 * @description 分页参数实体类
 */
public class PageParam {
    /**
     * 当前页码
     */
    private Long current;

    /**
     * 每页显示数量
     */
    private Long size;

    public PageParam() {
        //默认当前页码
        this.current = 1L;
        //默认每页显示数量
        this.size = 10L;
    }

    public PageParam(Long current, Long size) {
        this.current = current;
        this.size = size;
    }

    public Long getCurrent() {
        return current;
    }

    public void setCurrent(Long current) {
        this.current = current;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "PageParam{" +
                "current=" + current +
                ", size=" + size +
                '}';
    }
}
